import request from '@/utils/api'


export function listConfig (param) {
  return request({
    url: 'config/listPage',
    method: 'get',
    params: param
  })

}


export function addConfig (data) {
  return request({
    url: 'config',
    method: 'put',
    data
  })
}

export function updateConfig (data) {
  return request({
    url: 'config',
    method: 'post',
    data
  })
}

export function deleteConfig (data) {
  return request({
    url: 'config',
    method: 'delete',
    data
  })
}
